﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Core;
using System.Collections;

namespace Yuanlin.Business
{
    public class CompanyCardRequest : TEntityRequest<CompanyCard>
    {
        public CompanyCardRequest()
        {
            int? entityId = GetParameterValue<int?>(YuanlinParameterName.CompanyCardId);
            if (entityId.HasValue)
            {
                EntityId = entityId.Value;
            }
        }
    }
    public class CompanyCardListRequest : TEntityListRequest<CompanyCard>
    {
        private CompanyCardFlag? flag = GetParameterValue<CompanyCardFlag?>(YuanlinParameterName.Flag);
        private int? userId = GetParameterValue<int?>(YuanlinParameterName.UserId);
        private string companyName = GetParameterValue<string>(YuanlinParameterName.CompanyName);
        private int? isRegisterCompany = GetParameterValue<int?>(YuanlinParameterName.IsRegisterCompany);

        public CompanyCardFlag? Flag
        {
            get
            {
                return flag;
            }
            set
            {
                flag = value;
            }
        }
        public int? UserId
        {
            get
            {
                return userId;
            }
            set
            {
                userId = value;
            }
        }
        public string CompanyName
        {
            get
            {
                return companyName;
            }
            set
            {
                companyName = value;
            }
        }
        public int? IsRegisterCompany
        {
            get
            {
                return isRegisterCompany;
            }
            set
            {
                isRegisterCompany = value;
            }
        }
    }
    public class CompanyCardReply : EntityReply
    {
    }
}